/************************************************************************************************
 * test examples of 100 interesting program in C
 * test 069.c
 * trick of magician (2)
 ***********************************************************************************************/

#include <stdio.h>

/*
 *
 */

int main()
{
	int a[26];
	int i = 0;
	for (i = 0; i < 26; i++)
		a[i] = 0;

	int curr = 0;
	a[0] = 1;
	for (i = 2; i <= 26; i++)
	{
		int n = 0;
		do
		{
			if (a[curr] == 0)
			{
				n++;
				if (n == 3)
					a[curr] = i;
			}				
			curr++;
			curr %= 26;
		} while (n < 3);
	}

	for (i = 0; i < 26; i++)
	{
		if (a[i] < 13)
			printf("%3dB", a[i]);
		else
			printf("%3dR", a[i]-13);
	}
	printf("\n");
}

